<template>
  <div>
    <h1>App 根组件 --- {{count}}</h1>
    <MyCmp></MyCmp>
    <input type="text" v-focus>
    <div v-color="'red'">
      123
    </div>
    <!-- <button @click="btn" v-click>121</button> -->
  </div>
</template>

<script>
import MyCmp from './component.vue'
export default {
  name: 'MyApp',
  components: {
    MyCmp
  },
  data() {
    return {
      count: 0
    }
  },
  updated() {
    console.log(this.count)
  },
  methods: {
    btn() {
      this.count ++ 
    }
  }
}
</script>

<style>

</style>
